package org.lex.game.sudoku.model.builder;

import org.lex.game.sudoku.model.SudokuModel;
import org.lex.game.sudoku.model.SudokuModelListener.Cause;

import common.Sudokus;

public class EmptySudokuBuilder implements SudokuBuilder {

	@Override
	public void build(SudokuModel model) {
		int gridSize = model.getGridSize();
		for (int row = 0; row < gridSize; row++) {
			for (int col = 0; col < gridSize; col++) {
				model.set(Cause.SYSTEM, row, col, Sudokus.EMPTY_NUMBER);
			}
		}
	}

}
